package com.ruoyi.system.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("CouponAndUser实体类")
public class CouponAndUser {
	@ApiModelProperty(value = "")
	private Long id;

	@ApiModelProperty(value = "标题")
	private String title;

	@ApiModelProperty(value = "使用类型，如满减")
	private Integer type;

	@ApiModelProperty(value = "描述")
	private String description;

	@ApiModelProperty(value = "总数量")
	private Integer total;

	@ApiModelProperty(value = "剩余数量")
	private Integer surplus;

	@ApiModelProperty(value = "可以领取的张数")
	private Integer limit;

	@ApiModelProperty(value = "减少金额")
	private Integer discount;

	@ApiModelProperty(value = "最低消费金额")
	private Integer min;

	@ApiModelProperty(value = "状态0冻结，1激活")
	private Integer status;

	@ApiModelProperty(value = "类目id")
	private Long courseId;

	@ApiModelProperty(value = "过期天数")
	private Integer days;

	@ApiModelProperty(value = "领取开始时间")
	private Date gmtStart;

	@ApiModelProperty(value = "领取结束时间")
	private Date gmtEnd;

	@TableField(exist = false)
	private String courseName;  //类目名称
	@ApiModelProperty(value = "商家Id(优惠卷时写入)")
	private Long user_id;

	@ApiModelProperty(value = "满多少减")
	private Long max;

	@ApiModelProperty(value = "优惠卷二维码地址")
	private String url;

	@ApiModelProperty(value = "类型（0,未设置，1满减，2最低消费减）")
	private Integer isType;

	@ApiModelProperty(value = "昵称")
	private String nickname;

	@ApiModelProperty(value = "电话")
	private String phone;

	@ApiModelProperty(value = "真实姓名")
	private String name;

	@ApiModelProperty(value = "生日")
	private Date birthday;

	@ApiModelProperty(value = "性别")
	private Integer gender;

	private Date createtime;

	private Date updatetime;
}
